package com.study.decorator.battercake;

public class BatterCakeAddSausage extends BatterCakeDecorator {
    public BatterCakeAddSausage(BatterCake cake) {
        super(cake);
    }

    @Override
    protected String getName() {
        return super.getName() + "一跟烤肠";
    }

    @Override
    protected int getPrice() {
        return super.getPrice() + 2;
    }
}
